﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Log;
using mepostras.BLL;
using mepostras.BO.Util;
using mepostras.DAL;
using mepostras.Settings.BusinessLayer;
using GeneralCode = mepostras.BO.Util.BoConfig.MessageCode.General;
namespace mepostras.BO
{
    public class FileBo : IFileBo
    {
        /// <summary>
        /// Lấy danh sách file theo parent Id
        /// </summary>
        /// <param name="parentId"></param>
        /// <returns></returns>
        public TList<File> Get(string parentId)
        {
            int count;
            return DataRepository.FileProvider.GetPaged(String.Format("ParentId = '{0}'", parentId), "OrderIndex ASC", 0,
                                                        10000, out count);
        }
    }
}
